package com.yociyy.admin.model.entity;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yociyy.common.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 菜单信息 entity
 * 
 * @author Y.yang
 * @date 2019/12/2
 */
@Data
@Accessors(chain = true)
@Table(name = "base_menu")
public class BaseMenu extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID
	 */
	@Id
	@Column(name = "id")
	@GeneratedValue(generator = "JDBC")
	protected Long id;

	/**
	 * 路径编码
	 */
	@Column(name = "menu_code")
	private String menuCode;

	/**
	 * 菜单名称
	 */
	@Column(name = "menu_name")
	private String menuName;

	/**
	 * 父级菜单ID
	 */
	@Column(name = "parent_id")
	private Integer parentId;

	/**
	 * 资源路径
	 */
	@Column(name = "href")
	private String href;

	/**
	 * 图标
	 */
	@Column(name = "icon")
	private String icon;

	/**
	 * 菜单类型
	 */
	@Column(name = "type")
	private String type;

	/**
	 * 排序
	 */
	@Column(name = "sorted")
	private Integer sorted;

	/**
	 * 描述
	 */
	@Column(name = "description")
	private String description;

	/**
	 * 菜单上下级关系
	 */
	@Column(name = "path")
	private String path;

	/**
	 * 启用禁用
	 */
	@Column(name = "enabled")
	private String enabled;

	/**
	 * 前端组件
	 */
	@Column(name = "component")
	private String component;

	/**
	 * 权限标识
	 */
	@Column(name = "permission")
	private String permission;

}